<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%
	String ctxPath = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>网站计数器 - 注册用户</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<script type="text/javascript">var sys_ctx="<%=ctxPath%>";</script>
	<script type="text/javascript" src="<%=ctxPath%>/js/register.js"></script>
</head>
<body>
	<%-- 注册用户 --%>
	<%
		Map loginRtnMap = (Map)request.getAttribute("loginRtnMap");
		if(loginRtnMap!=null && !(Boolean)loginRtnMap.get("result")){
	%>
	<font color="red"><%=loginRtnMap.get("msg") %></font>
	<%
		}
	%>
	<form id="reg_form" name="reg_form" action="<%=ctxPath%>/bin/counter.do" method="post"
		onSubmit="return check_reg_from();" >
		<input type="hidden" name="method" value="register">
		<table>
			<tr><td><label>姓名：</label></td>
				<td><input id="xm" name="xm" ></td></tr>
			<tr><td><label>登录名：</label></td>
				<td><input id="dlmc" name="dlmc" ></td></tr>
			<tr><td><label>密码：</label></td>
				<td><input id="dlmm" name="dlmm" type="password" ></td></tr>
			<tr><td><label>确认密码：</label></td>
				<td><input id="dlmm2" name="dlmm2" type="password" ></td></tr>
			<tr><td><label>邮箱：</label></td>
				<td><input id="dzyx" name="dzyx" ></td></tr>
			<tr><td colspan="2">&nbsp;&nbsp;<input type="submit" value="注册" >
				&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="返回主页" onclick="return_home();" ></td></tr>
		</table>
	</form>
</body>
</html>